<ul class="nav nav-tabs">
  <li class="<%= 'active' if active == 'stages' %>">
    <%= link_to "Stages", project %>
  </li>
  <li class="<%= 'active' if active == 'releases' %>">
    <%= link_to "Releases", project_releases_path(project) %>
  </li>
  <% if ENV['DOCKER_FEATURE'] %>
    <li class="<%= 'active' if active == 'builds' %>">
      <%= link_to "Builds", project_builds_path(project) %>
    </li>
  <% end %>
  <li class="<%= 'active' if active == 'deploys' %>">
    <%= link_to "Deploys", project_deploys_path(project) %>
  </li>
  <li class="<%= 'active' if active == 'jobs' %>">
    <%= link_to "Jobs", project_jobs_path(project) %>
  </li>
  <li class="<%= 'active' if active == 'webhooks' %>">
    <%= link_to "Webhooks", project_webhooks_path(project) %>
  </li>
  <li class="<%= 'active' if active == 'changelog' %>">
    <%= link_to "Changelog", project_changelog_path(project) %>
  </li>

  <%= Samson::Hooks.render_views(:project_tabs_view, self, { project: @project, active: active }) %>

  <%# These 2 are last since they are adminy and icons %>
  <li class="<%= 'active' if active == 'user_project_roles' %>">
    <%= link_to icon_tag('user'), project_user_project_roles_path(project) %>
  </li>

  <% if can? :read, :projects, @project %>
    <li class="<%= 'active' if active == 'settings' %>">
      <%= link_to icon_tag('cog'), edit_project_path(project) %>
    </li>
  <% end %>
</ul>
